Asynchronous Completion Token An Object Behavioral Pattern for Efficient Asynchronous Event Handling
نویسندگان
چکیده
Contemporary applications must respond to many types of events, ranging from user interface notifications to network messages. Delay-sensitive applications, such as network management systems, often perform long-runningoperations asynchronously to avoid blocking the processing of other pending events. When these asynchronous operations complete, applications may need more information than simply the notification itself to properly handle the event. This paper describes the Asynchronous Completion Token pattern, which allows applications to efficiently associate state with the completion of asynchronous operations.
منابع مشابه
Using Design Patterns and Frameworks to Develop Object-Oriented Communication Systems
Factory 19 Tactical Patterns Proxy { \Provide a surrogate or placeholder for another object to control access to it" Strategy { \De ne a family of algorithms, encapsulate each one, and make them interchangeable" Adapter { \Convert the interface of a class into another interface client expects" Singleton { \Ensure a class only has one instance and provide a global point of access to it" State { ...
متن کاملOn the Integration of Real-time Asynchronous Event Handling Mechanisms with Existing Operating System Services
This paper presents an asynchronous event handling mechanism for real-time applications that leverages existing system services in COTS systems. In our implementation, event dispatching is initiated within bottom-half interrupt handling routines, in order to support predictable, safe, and efficient event handling functionality at user-level. We compare our asynchronous I/O mechanism with existi...
متن کاملAsynchronous Event Handling in Distributed Object-Based Systems
This paper discusses the design and the operating system support necessary for providing asynchronous event handling in distributed, passive object-based programming environments, where objects are potentially shared by disparate applications. We discuss the necessity of thread-based as well as object-based event notification and how a variety of hard to solve distributed programming issues can...
متن کاملAn Improved Token-Based and Starvation Free Distributed Mutual Exclusion Algorithm
Distributed mutual exclusion is a fundamental problem of distributed systems that coordinates the access to critical shared resources. It concerns with how the various distributed processes access to the shared resources in a mutually exclusive manner. This paper presents fully distributed improved token based mutual exclusion algorithm for distributed system. In this algorithm, a process which...
متن کاملAn efficient scheme for accommodating synchronous traffic in a cable-modem network while avoiding segmentation of asynchronous packets
Cable-modem (CM) technology is being developed to provide high-speed multimedia services to the subscribers’ homes over the existing hybrid-fiber-coax (HFC) infrastructure of cable TV networks. The paper proposes an efficient scheme for combining asynchronous and synchronous traffic on the upstream channel of a CM network when segmentation of the asynchronous packets is to be avoided, e.g. beca...
متن کامل